#include "userchatmode.h"
#include "ui_userchatmode.h"

userChatmode::userChatmode(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::userChatmode)
{
    ui->setupUi(this);

}

userChatmode::userChatmode(QWidget *parent, const QString &username, const QString &password):
    QWidget(parent),
    ui(new Ui::userChatmode)
{
    ui->setupUi(this);
    this->username = username;
    this->uid = password;
    ui->lb_userinfo2->setText(this->username);
    ui->lb_usersign2->setText(uid);
}

userChatmode::~userChatmode()
{
    delete ui;
}

const QString &userChatmode::getUsername() const
{
    return username;
}

const QString &userChatmode::getUid() const
{
    return uid;
}
